package routers

import (
	"boomlive.com/boomlive-openapi-game/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

// 注册所有beego路由
func init() {

	// 测试
	beego.Router("/test/*", &controllers.TestController{})
	beego.Router("/test/index", &controllers.TestController{}, "get:Index")
	//beego.Router("/test/testGetDB", &controllers.TestController{}, "get:TestGetDB")
	//beego.Router("/test/testORM", &controllers.TestController{}, "get:TestORM")
	beego.Router("/test/testMSSQL", &controllers.TestController{}, "get:TestMSSQL")
	beego.Router("/test/testRedis", &controllers.TestController{}, "get:TestRedis")

	//joyplay
	beego.Router("/joyplay/*", &controllers.JoyplayController{})
	beego.Router("/joyplay/game/getUserInfo", &controllers.JoyplayController{}, "get:UserInfo")
	beego.Router("/joyplay/game/submitFlow", &controllers.JoyplayController{}, "post:SubmitFlow")
}
